<template>
    <div class="container">
      <el-row class="container--item__header">
        <el-col :span="8" class="container--item__left">
          <i class="el-icon-arrow-left" @click='fn'></i>
        </el-col>
        <el-col :span="8" class="container--item__pay">支付</el-col>
      </el-row>
      <el-row class="container--item__box" v-if="bol">
        <el-col :span="20" class="container--item__popup">
         <el-col class="container--item__leave">你确定要离开此页面吗？</el-col>
         <el-col :span="12" class="container--item__abrogate"><span @click="abr">取消</span></el-col>
         <el-col :span="12" class="container--item__confirm"><span @click="con">确定</span></el-col>
        </el-col>
      </el-row>
    </div>
</template>

<script>
export default {
  name: 'pay',
  data () {
    return {
      bol: false
    }
  },
  methods: {
    fn () {
      this.bol = true
    },
    abr () {
      this.bol = false
    },
    con () {
      this.$router.push({name: 'login'})
    }
  }
}
</script>

<style scoped lang="scss">
  .container--item__header{
    background: orange;
    color: #fff;
    line-height: 60px;
    .container--item__left{
      padding-left: 30px;
    }
    .container--item__pay{
      text-align: center;
      font-size: 18px;
    }
  }
  .container--item__box{
    text-align: center;
    font-size: 24px;
    .container--item__popup{
      margin-top: 40%;
      margin-left: 8%;
      height: 25vh;
      background: #fff;
      border: 1px solid #dfdfdf;
      border-bottom: none;
      box-sizing: border-box;
    }
    .container--item__leave{
      margin-top: 10%;
    }
    .container--item__abrogate{
      margin-top: 18.5%;
      line-height: 50px;
      border: 1px solid #dfdfdf;
      box-sizing: border-box;
    }
    .container--item__confirm{
      margin-top: 18.5%;
      line-height: 50px;
      border: 1px solid #dfdfdf;
      box-sizing: border-box;
    }
  }

</style>
